package com.m78.mapper;

import com.m78.entity.Community;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CommunityMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Community record);

    int insertSelective(Community record);

    Community selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Community record);

    int updateByPrimaryKey(Community record);

    /**
     * 查询小区数量
     */
    Integer getCommunityNum();

    /**
     * 查询全部小区
     * @return
     */
    List<Community> findAll();
}